package com.ls.superclass;

public class A {
	private static A instance ;
	public static A getInstance() {
		if (instance == null)
			throw new RuntimeException("EncryptionContext not init");
		return instance;
	}
/**
 * 
 * @param transitionTime 过渡期时长
 * @return
 */
	public static A initInstance() {
		if (instance == null)
			synchronized (A.class) {
				if (instance == null)
					instance = new A();
			}
		return instance;
	}
public static void setInstance(A instance) {
	A.instance = instance;
}
}
